
package edu.centenary.centenaryController;
/**
* This is a Pose object which contains methods to store and retrieve the x,y,z and roll,pitch,yaw values for the starting positions built into a simulator map.
*/
public class Pose {
    //datamembers
	 /**
	 * An identifier for each pose
	 */
    private int i = 0;
	 /**
	 * The x coordinate for the starting position
	 */
    private double  x = 0;
	 /**
	 * The y coordinate for the starting position
	 */
    private double  y = 0;
	 /**
	 * The z coordinate for the starting position
	 */
    private double  z = 0;
	 /**
	 * The roll (rotation around the x axis) value for the starting position
	 */
    private double roll = 0;
	 /**
	 * The pitch (rotation around the y axis )value for the starting position
	 */
    private double pitch = 0;
	 /**
	 * The yaw (rotation around the z axis) value for the starting position
	 */
    private double yaw = 0;

    /**
	 * The constructor method for Pose
	 * @param i An identifier for each pose
	 * @param x The x coordinate for the starting position
	 * @param y The y coordinate for the starting position
	 * @param z The z coordinate for the starting position
	 * @param roll The roll value for the starting position
	 * @param pitch The pitch value for the starting position
	 * @param yaw The yaw value for the starting position
	 */
    public Pose(int i, double x, double y, double z, double roll, double pitch, double yaw) {
        this.i = i;
        this.x = x;
        this.y = y;
        this.z = z;
        this.roll = roll;
        this.pitch = pitch;
        this.yaw = yaw;
    }
    //methods
	 /**
	 * Sets the x coordinate for the starting position
	 */
    public void setX(double x) {
        this.x = x;
    }
	 /**
	 * Gets the x value
	 * @return The x coordinate for the starting position
	 */
    public double getX() {
        return x;
    }
	 /**
	 * Sets the y coordinate for the starting position
	 */
    public void setY(double y) {
        this.y = y;
    }
	 /**
	 * Gets the y value
	 * @return The y coordinate for the starting position
	 */
    public double getY() {
        return y;
    }
	 /**
	 * Sets the z coordinate for the starting position
	 */
    public void setZ(double z) {
        this.z = z;
    }
	 /**
	 * Gets the z value
	 * @return The z coordinate for the starting position
	 */
    public double getZ() {
        return z;
    }
	 /**
	 * Sets the roll value for the starting position
	 */
    public void setRoll(double roll) {
        this.roll = roll;
    }
	 /**
	 * Gets the roll value for the starting position
	 * @return The rotation about the x axis
	 */
    public double getRoll() {
        return roll;
    }
	 /**
	 * Sets the pitch value for the starting position
	 */
    public void setPitch(double pitch) {
        this.pitch = pitch;
    }
	 /**
	 * Gets the pitch value for the starting position
	 * @return The rotation about the y axis
	 */
    public double getPitch() {
        return pitch;
    }
	 /**
	 * Sets the yaw value for the starting position
	 */
    public void setYaw(double yaw) {
        this.yaw = yaw;
    }
	 /**
	 * Gets the yaw value for the starting position
	 * @return The rotation about the z axis
	 */
    public double getYaw() {
        return yaw;
    }
}